<script id="content" type="text/template">
	<div class="form-group">
    	<label>商品ID：</label>
    	<input type="text" class="form-control" readonly="readonly" value="<!--{response.get.shop_goods_id}-->">
  	</div>
	<div class="form-group">
    	<label>商品名称：</label>
    	<input type="text" class="form-control" readonly="readonly" value="<!--{response.get.shop_goods_name}-->">
  	</div>
	
	<ul class="nav nav-tabs">
		<!--if{http().anchor.query.tabs == 'spu'}-->
		<li class="active">
			<a href="javascript:;">属性<!-- SPU（Standard Product Unit）--></a>
		</li>
		<li>
			<a href="<!--helper {'nav-tabs-href'}-->">规格<!-- SKU（Stock Keeping Unit）--></a>
		</li>
		<!--else-->
		<li>
			<a href="<!--helper {'nav-tabs-href'('spu')}-->">属性<!-- SPU（Standard Product Unit）--></a>
		</li>
		<li class="active">
			<a href="javascript:;">规格<!-- SKU（Stock Keeping Unit）--></a>
		</li>
		<!--/if-->
    </ul>
	
	
	<!--if{http().anchor.query.tabs == 'spu'}-->
	<br/>
	<button type="button" class="btn btn-default"  name="goods-spu-add-input"><span class="glyphicon glyphicon-plus"></span> 添加属性</button>
	<button type="button" class="btn btn-default"  name="goods-sku-add-input"><span class="glyphicon glyphicon-plus"></span> 添加规格</button>
	<!--<button type="button" class="btn btn-default"  name="goods-spu-add-input"><span class="glyphicon glyphicon-save"></span> 导入属性模板</button>-->
	<button class="btn btn-default" type="button" action-button-spu="sort"><span class="glyphicon glyphicon-sort"></span> 排序属性</button>
	<button class="btn btn-danger" type="button" action-button-spu="remove"><span class="glyphicon glyphicon-trash"></span> 删除属性</button>
	<div class="alert alert-warning" style="margin-bottom: 10px;padding: 8px;margin-top: 10px;">
		<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    	<strong>注意!</strong> 商品属性以排序字段、创建时间正序的方式排序。
    </div>
<table class="table table-hover">
  	<tbody>
  	
  	<!--if{response.shop_goods_spu_option.length}-->
	<!--for{var i in response.shop_goods_spu_option}-->
  	
    <tr>
		<th colspan="2">
	      	#<!--{parseInt(i)+1}-->
	      	<input type="checkbox" action-table="checkbox-spu" data-id="<!--{response.shop_goods_spu_option[i].shop_goods_spu_id}-->"> 
	      	<span style="color: #ccc;font-weight: normal;">╍</span>
	      	<span style="font-size: 17px;"><!--{response.shop_goods_spu_option[i].shop_goods_spu_name}--></span>
	      	<!--if{parseInt(response.shop_goods_spu_option[i].shop_goods_spu_required)}-->
				<span style="color: red;">*必选</span>
			<!--/if-->
			<span style="color: #ccc;font-weight: normal;">╍</span>
			<span style="color: #999;font-weight: normal;">排序:</span>
			<input type="text" class="form-control" placeholder="排序" style="max-width: 100px;display: inline-block;" action-table="spu-sort" data-id="<!--{response.shop_goods_spu_option[i].shop_goods_spu_id}-->" value="<!--{response.shop_goods_spu_option[i].shop_goods_spu_sort}-->">
			<span style="color: #ccc;font-weight: normal;">╍</span>
			<button class="btn btn-default btn-xs" name="goods-spu-edit-input" data-parent="<!--{response.shop_goods_spu_option[i].shop_goods_spu_parent_id}-->" data-id="<!--{response.shop_goods_spu_option[i].shop_goods_spu_id}-->"><span class="glyphicon glyphicon-edit"></span> 编辑</button>
			<button class="btn btn-default btn-xs"  name="goods-spu-add-input" data-parent="<!--{response.shop_goods_spu_option[i].shop_goods_spu_id}-->"><span class="glyphicon glyphicon-plus"></span> 添加子选项</button>
			
			<!--if{response.shop_goods_spu_option[i].shop_goods_spu_info}-->
			<span style="color: #ccc;font-weight: normal;">╍</span>
			<span style="color: #808080;font-weight: normal;">
				<span class="glyphicon glyphicon-info-sign"></span>
				<!--{response.shop_goods_spu_option[i].shop_goods_spu_info}-->
			</span>
			<!--/if-->
		</th>
    </tr>
    
    <!--if{response.shop_goods_spu_option[i].son.length}-->
    <tr><td style="width: 100px;" rowspan="<!--{response.shop_goods_spu_option[i].son.length+1}-->"></td></tr>
  	<!--for{var s in response.shop_goods_spu_option[i].son}-->
	 	<tr><td>
	 		#<!--{(parseInt(i)+1)+"."+(parseInt(s)+1)}-->
	 		<input type="checkbox" action-table="checkbox-spu" data-id="<!--{response.shop_goods_spu_option[i].son[s].shop_goods_spu_id}-->"> 
	 		<span style="color: #ccc;font-weight: normal;">╍</span>
	 		<span style="font-weight: bold;font-size: 15px;"><!--{response.shop_goods_spu_option[i].son[s].shop_goods_spu_name}--></span>
	 		<!--if{parseInt(response.shop_goods_spu_option[i].son[s].shop_goods_spu_required)}-->
				<span style="color: red;">*必选</span>
			<!--/if-->
			<span style="color: #ccc;font-weight: normal;">╍</span>
			<span style="color: #999;font-weight: normal;">排序:</span>
			<input type="text" class="form-control" placeholder="排序" style="max-width: 100px;display: inline-block;" action-table="spu-sort" data-id="<!--{response.shop_goods_spu_option[i].son[s].shop_goods_spu_id}-->" value="<!--{response.shop_goods_spu_option[i].son[s].shop_goods_spu_sort}-->">
			
			<span style="color: #ccc;font-weight: normal;">╍</span>
	 		<button class="btn btn-default btn-xs" name="goods-spu-edit-input" data-parent="<!--{response.shop_goods_spu_option[i].son[s].shop_goods_spu_parent_id}-->" data-id="<!--{response.shop_goods_spu_option[i].son[s].shop_goods_spu_id}-->"><span class="glyphicon glyphicon-edit"></span> 编辑</button>
	 		
			<!--if{response.shop_goods_spu_option[i].son[s].shop_goods_spu_info}-->
			<span style="color: #ccc;font-weight: normal;">╍</span>
			<span style="color: #808080;font-weight: normal;">
				<span class="glyphicon glyphicon-info-sign"></span>
				<!--{response.shop_goods_spu_option[i].son[s].shop_goods_spu_info}-->
			</span>
			<!--/if-->
			
	 	</td></tr>
	<!--/for-->
	<!--else-->
	<tr>
		<td style="width: 100px;"></td>
		<td><span style="color: #999999;margin-left: 15px;">无子选项 </span></td>
	</tr>
	<!--/if-->
    
    
    <!--/for-->
    <!--else-->
    <span style="color: #999999;margin-left: 15px;">无属性 </span>
	<!--/if-->
    
  	</tbody>
</table>  
	
	
	
	
	
	
	
	<!--else-->
	<br/>
	<button type="button" class="btn btn-default"  name="goods-spu-add-input"><span class="glyphicon glyphicon-plus"></span> 添加属性</button>
	<button type="button" class="btn btn-default"  name="goods-sku-add-input"><span class="glyphicon glyphicon-plus"></span> 添加规格</button>
	<button class="btn btn-danger" type="button" action-button-sku="remove"><span class="glyphicon glyphicon-trash"></span> 删除规格</button>
	<div class="alert alert-warning" style="margin-bottom: 10px;padding: 8px;margin-top: 10px;">
		<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    	<strong>注意!</strong> 当库存为0的时候，表示其规格已经失效，亦是其规格停止了售卖。
    </div>
	<table class="table table-striped">
      <thead>
        <tr>
          <th><input type="checkbox" action-table="checkbox-all"></th>	
          <th>#</th>
          <th>属性列表</th>
          <th>描述</th>
          <th>
          	<!--if{http().anchor.query.sort == "stock_desc"}-->
          	<a href="javascript:;" action-sort="stock_asc"><span class="glyphicon glyphicon-sort-by-attributes-alt"></span>库存</a>
          	<!--elseif{http().anchor.query.sort == "stock_asc"}-->
          	<a href="javascript:;" action-sort="stock_desc"><span class="glyphicon glyphicon-sort-by-attributes"></span>库存</a>
          	<!--else-->
          	<a href="javascript:;" action-sort="stock_desc">库存</a>
          	<!--/if-->
          </th>
          
          <th>
          	<!--if{http().anchor.query.sort == "market_price_desc"}-->
          	<a href="javascript:;" action-sort="market_price_asc"><span class="glyphicon glyphicon-sort-by-attributes-alt"></span><!--if{response.get.shop_goods_property == 0}-->市场价(人民币)<!--else-->市场价(积分)<!--/if--></a>
          	<!--elseif{http().anchor.query.sort == "market_price_asc"}-->
          	<a href="javascript:;" action-sort="market_price_desc"><span class="glyphicon glyphicon-sort-by-attributes"></span><!--if{response.get.shop_goods_property == 0}-->市场价(人民币)<!--else-->市场价(积分)<!--/if--></a>
          	<!--else-->
          	<a href="javascript:;" action-sort="market_price_desc"><!--if{response.get.shop_goods_property == 0}-->市场价(人民币)<!--else-->市场价(积分)<!--/if--></a>
          	<!--/if-->
          </th>
          <th>
          	<!--if{http().anchor.query.sort == "price_desc"}-->
          	<a href="javascript:;" action-sort="price_asc"><span class="glyphicon glyphicon-sort-by-attributes-alt"></span><!--if{response.get.shop_goods_property == 0}-->售卖单价(人民币)<!--else-->售卖单价(积分)<!--/if--></a>
          	<!--elseif{http().anchor.query.sort == "price_asc"}-->
          	<a href="javascript:;" action-sort="price_desc"><span class="glyphicon glyphicon-sort-by-attributes"></span><!--if{response.get.shop_goods_property == 0}-->售卖单价(人民币)<!--else-->售卖单价(积分)<!--/if--></a>
          	<!--else-->
          	<a href="javascript:;" action-sort="price_desc"><!--if{response.get.shop_goods_property == 0}-->售卖单价(人民币)<!--else-->售卖单价(积分)<!--/if--></a>
          	<!--/if-->
          </th>
          
          
          <th>
          	<!--if{http().anchor.query.sort == "update_time_desc"}-->
          	<a href="javascript:;" action-sort="update_time_asc"><span class="glyphicon glyphicon-sort-by-attributes-alt"></span>更新时间</a>
          	<!--elseif{http().anchor.query.sort == "update_time_asc"}-->
          	<a href="javascript:;" action-sort="update_time_desc"><span class="glyphicon glyphicon-sort-by-attributes"></span>更新时间</a>
          	<!--else-->
          	<a href="javascript:;" action-sort="update_time_desc">更新时间</a>
          	<!--/if-->
          </th>
          
          
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
      	<!--if{response.list.data.length}-->
      	<!--for{var i in response.list.data}-->
      	<tr>
          <th><input type="checkbox" action-table="checkbox" data-id="<!--{response.list.data[i].shop_goods_sku_id}-->"></th>
          <td><!--{parseInt(i)+1+((parseInt(response.list.page_now) - 1) * response.list.page_size)}--></td>
          <td>
          	<!--js{var shop_goods_spu_id = response.list.data[i].shop_goods_spu_id.replace(/[\,]$/g,"").replace(/^[\,]/g,"").split(",");}-->
          	<!--js{var shop_goods_spu_length = 0}#记录正常显示的个数-->
          	
          	<!--if{response.shop_goods_spu_option.length}-->
          	<!--for{var attr_i in response.shop_goods_spu_option}-->
          	<!--js{var shop_goods_spu_son_string = ""}#收集子级名称-->
          	<!--js{var shop_goods_spu_son_length = 0}#收集子级个数-->
          	
          	<!--if{response.shop_goods_spu_option[attr_i].son.length}-->
	   		<!--for{var s in response.shop_goods_spu_option[attr_i].son}-->
          	
          	<!--js{var reg_exp = new RegExp('\,' + response.shop_goods_spu_option[attr_i].son[s].shop_goods_spu_id + '\,',"g");}-->
          	<!--if{response.list.data[i].shop_goods_spu_id.match(reg_exp)} #匹配是否存在属性-->
          	
          	<!--if{shop_goods_spu_son_length > 0}-->
          	<!--js{shop_goods_spu_son_string+='<span style="color: #c2c2c2;padding: 0 5px;">|</span>'}-->
          	<!--/if-->
          	
          	<!--js{shop_goods_spu_son_string+=response.shop_goods_spu_option[attr_i].son[s].shop_goods_spu_name}-->
          	
          	<!--js{shop_goods_spu_length ++}-->
          	<!--js{shop_goods_spu_son_length ++}-->
          	<!--/if #匹配是否存在属性-->
          	
          	
          	<!--/for-->
          	<!--/if-->
          	
          	<!--if{shop_goods_spu_son_string!=""}-->
          	<div>
          		<label class="checkbox-inline" style="margin-right: 10px;">
					<input type="checkbox" checked="checked" disabled="disabled" style="margin-left: -16px;">
					<span style="color: #999;"><!--{response.shop_goods_spu_option[attr_i].shop_goods_spu_name}--></span>
				  	<!--html{shop_goods_spu_son_string}-->
				</label>
			</div>	
          	<!--/if-->
          	
          	<!--/for-->
          	<!--/if-->
          	
          	<!--if{shop_goods_spu_id.length != shop_goods_spu_length}#判断属性是否有残留-->
          	<div style="color: red;">存在未知属性，需要重新编辑</div>
          	<!--/if#判断属性是否有残留-->
          	
          </td>
          <td>
          	<div id="tips-<!--{response.list.data[i].shop_goods_sku_id}-->" class="tips" data-title="查看描述" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;width: 150px;cursor: pointer;" data="<!--{response.list.data[i].shop_goods_sku_info}-->"><!--{response.list.data[i].shop_goods_sku_info}--></div>
          </td>
          <td><!--{response.list.data[i].shop_goods_sku_stock}--></td>
          
          <!--if{response.get.shop_goods_property == 0}-->
          <td><!--{parseInt(response.list.data[i].shop_goods_sku_market_price)/100}--> 元</td>
          <td><!--{parseInt(response.list.data[i].shop_goods_sku_price)/100}--> 元</td>
          <!--elseif{response.get.shop_goods_property == 1}-->
          <td><!--{(response.list.data[i].shop_goods_sku_market_price/response.application_config.credit.scale).toFixed(response.application_config.credit.precision)}--></td>
          <td><!--{(response.list.data[i].shop_goods_sku_price/response.application_config.credit.scale).toFixed(response.application_config.credit.precision)}--></td>
          <!--/if-->
          
          <td><!--{WangAho().date("yyyy/MM/dd HH:mm EEE", parseInt(response.list.data[i].shop_goods_sku_update_time) * 1000)}--></td>
          <td>
          	<button type="button" class="btn btn-default" name="goods-sku-edit-input" data-id="<!--{response.list.data[i].shop_goods_sku_id}-->"><span class="glyphicon glyphicon-edit"></span> 编辑</button>
          </td>
          
        </tr>
        <!--/for-->
      	<!--else-->
        <tr>
          <td colspan="10" align="center">无数据</td>
        </tr>
        <!--/if-->
      </tbody>
    </table>
	
	 <!--if{response.list.data.length}-->
	<div class="paging" style="text-align: center;">
		<button class="first btn btn-default <!--if helper{"is_first_page" (response.list.page_now)}-->disabled<!--/if-->" data-page="1" type="button">首页</button>
		<button class="previous btn btn-default <!--if helper{"is_first_page" (response.list.page_now)}-->disabled<!--/if-->" data-page="<!--{parseInt(response.list.page_now) - 1}-->" type="button">上一页</button>
		<button class="btn btn-default" type="button">
			第<!--{response.list.page_now}-->页
			/ 共<!--{response.list.page_count}-->页
			/ 有<!--{response.list.row_count}-->条数据</button>
		<button class="next btn btn-default <!--if helper{"is_end_page" (response.list.page_now, response.list.page_count)}-->disabled<!--/if-->" type="button" data-page="<!--{parseInt(response.list.page_now) + 1}-->">下一页</button>
		<button class="end btn btn-default <!--if helper{"is_end_page" (response.list.page_now, response.list.page_count)}-->disabled<!--/if-->" type="button" data-page="<!--{response.list.page_count}-->">尾页</button>
	</div>
	<div class="form-inline" style="text-align: center;margin-top: 10px;">
		<div class="form-group">
			<input type="text" class="form-control paging--value" placeholder="输入跳转页" style="width: 100px;">
		</div>
		<button type="button" class="btn btn-default paging--submit">跳转</button>
	</div>
	<!--/if-->
	
	
	
	
	
	
	
	
	
	<!--/if-->
  	
  	
	<hr/>
	<span style="color: #999999;">更新时间：<!--{WangAho().date("yyyy/MM/dd HH:mm EEE", parseInt(response.get.shop_goods_update_time) * 1000)}--></span>
	<div style="height: 100px;"></div>
</script>


<script id="spu-add" type="text/template">
	<div style="padding: 10px;width: 500px;">
		<div class="form-group">
		    <label>属性名称：</label>
		    <input type="text" class="form-control" placeholder="输入属性名称" name="shop_goods_spu_name">
		</div>
		<div class="form-group">
	    	<label>是否必选：</label>
	    	<label class="checkbox-inline">
				<input type="checkbox" value="1" name="shop_goods_spu_required"> 是
			</label>
	  	</div>
	  	<div class="form-group">
	    	<label>父级：</label>
		  	<select class="form-control" name="shop_goods_spu_parent_id">
			  <option value="">-顶级-</option>
			  <!--if{response.shop_goods_spu_option}-->
			  <!--for{var i in response.shop_goods_spu_option}-->
			  
			  <option value="<!--{response.shop_goods_spu_option[i].shop_goods_spu_id}-->" <!--if{shop_goods_spu_parent_id == response.shop_goods_spu_option[i].shop_goods_spu_id}-->selected="selected"<!--/if-->>
			  <!--{response.shop_goods_spu_option[i].shop_goods_spu_name}-->
			  </option>
			  
			  <!--/for-->
			  <!--/if-->
			</select>
	  	</div>
		<div class="form-group">
		    <label>排序：</label>
		    <input type="text" class="form-control" placeholder="输入排序" name="shop_goods_spu_sort">
		</div>
		<div class="form-group">
		    <label>描述：</label>
		    <textarea class="form-control" rows="3" placeholder="输入描述" name="shop_goods_spu_info"></textarea>
		</div>
		<br/>
		<button type="button" class="btn btn-primary btn-block" name="goods-spu-add-submit">确定添加</button>
	</div>
</script>


<script id="spu-edit" type="text/template">
	<div style="padding: 10px;width: 500px;">
		<div class="form-group">
		    <label>属性ID：</label>
		    <input type="text" class="form-control" readonly="readonly" name="shop_goods_spu_id" value="<!--{goods_spu_data.shop_goods_spu_id}-->">
		</div>
		<div class="form-group">
		    <label>属性名称：</label>
		    <input type="text" class="form-control" placeholder="输入属性名称" name="shop_goods_spu_name" value="<!--{goods_spu_data.shop_goods_spu_name}-->">
		</div>
		<div class="form-group">
	    	<label>是否必选：</label>
	    	<label class="checkbox-inline">
				<input type="checkbox" value="1" name="shop_goods_spu_required" <!--if{parseInt(goods_spu_data.shop_goods_spu_required)}-->checked="checked"<!--/if-->> 是
			</label>
	  	</div>
	  	<div class="form-group">
	    	<label>父级：</label>
		  	<select class="form-control" name="shop_goods_spu_parent_id">
			  <option value="">-顶级-</option>
			  <!--if{response.shop_goods_spu_option}-->
			  <!--for{var i in response.shop_goods_spu_option}-->
			  
			  <option value="<!--{response.shop_goods_spu_option[i].shop_goods_spu_id}-->" <!--if{goods_spu_data.shop_goods_spu_parent_id == response.shop_goods_spu_option[i].shop_goods_spu_id}-->selected="selected"<!--/if-->>
			  <!--{response.shop_goods_spu_option[i].shop_goods_spu_name}-->
			  </option>
			  
			  <!--/for-->
			  <!--/if-->
			</select>
	  	</div>
		<div class="form-group">
		    <label>排序：</label>
		    <input type="text" class="form-control" placeholder="输入排序" name="shop_goods_spu_sort" value="<!--{goods_spu_data.shop_goods_spu_sort}-->">
		</div>
		<div class="form-group">
		    <label>描述：</label>
		    <textarea class="form-control" rows="3" placeholder="输入描述" name="shop_goods_spu_info"><!--{goods_spu_data.shop_goods_spu_info}--></textarea>
		</div>
		<br/>
		<button type="button" class="btn btn-primary btn-block" name="goods-spu-edit-submit">提交编辑</button>
	</div>
</script>




<script id="sku-add" type="text/template">
	<div style="padding: 10px;width: 500px;">
		<div class="form-group">
		    <label>属性列表：</label>
		    <div class="panel panel-default">
	  			<div class="panel-body">
	  				<!--if{response.shop_goods_spu_option.length}-->
	  				<!--for{var i in response.shop_goods_spu_option}-->
	  					<div <!--if{parseInt(i)+1 != response.shop_goods_spu_option.length}-->style="margin-bottom: 20px;" <!--/if--> >
	  						<div class="label label-default" style="font-size: 100%;display: block;margin-bottom: 10px;">#<!--{parseInt(i)+1}--> <!--{response.shop_goods_spu_option[i].shop_goods_spu_name}--></div>
	  					
		  					<!--if{response.shop_goods_spu_option[i].son.length}-->
		  					<!--for{var s in response.shop_goods_spu_option[i].son}-->
		  					<label class="checkbox-inline" style="margin-right: 10px;">
  								<input type="checkbox" name="shop_goods_spu_id" style="margin-left: -16px;" value="<!--{response.shop_goods_spu_option[i].son[s].shop_goods_spu_id}-->" <!--if{parseInt(response.shop_goods_spu_option[i].son[s].shop_goods_spu_required)}-->checked="checked" disabled="disabled"<!--/if--> >
							  	<!--{response.shop_goods_spu_option[i].son[s].shop_goods_spu_name}-->
							</label>
		  					<!--/for-->
		  					<!--else-->
		  					<div style="color: #999;text-align: center;">无选项</div>
		  					<!--/if-->
	  						
	  					</div>
	  				<!--/for-->
	  				<!--/if-->
		    	</div>
		    </div>
		</div>
		<div class="form-group">
		    <label>库存：</label>
		    <input type="text" class="form-control" placeholder="输入库存" name="shop_goods_sku_stock">
		</div>
		
		<div class="form-group">
		    <label>市场价：<span style="color: #999;">可不填</span></label>
		    <div class="input-group">
			    <input type="text" class="form-control" placeholder="输入售卖单价" name="shop_goods_sku_market_price">
			  	<span class="input-group-addon"><!--if{response.get.shop_goods_property == 1}-->积分数量<!--else-->元<!--/if--></span>
			</div>
		</div>
		<div class="form-group">
		    <label>售卖单价：</label>
		    <div class="input-group">
			    <input type="text" class="form-control" placeholder="输入售卖单价" name="shop_goods_sku_price">
			  	<span class="input-group-addon"><!--if{response.get.shop_goods_property == 1}-->积分数量<!--else-->元<!--/if--></span>
			</div>
		</div>
		
		<div class="form-group">
		    <label>描述：</label>
		    <textarea class="form-control" rows="3" placeholder="输入描述" name="shop_goods_sku_info"></textarea>
		</div>
		<br/>
		<button type="button" class="btn btn-primary btn-block" name="goods-sku-add-submit">确定添加</button>
	</div>
</script>



<script id="sku-edit" type="text/template">
	<div style="padding: 10px;width: 500px;">
		<div class="form-group">
		    <label>库存售卖ID：</label>
		    <input type="text" class="form-control" readonly="readonly" name="shop_goods_sku_id" value="<!--{goods_sku_data.shop_goods_sku_id}-->">
		</div>
		<div class="form-group">
		    <label>属性列表：</label>
		    <div class="panel panel-default">
	  			<div class="panel-body">
	  				<!--if{response.shop_goods_spu_option.length}-->
	  				<!--for{var i in response.shop_goods_spu_option}-->
	  					<div <!--if{parseInt(i)+1 != response.shop_goods_spu_option.length}-->style="margin-bottom: 20px;" <!--/if--> >
	  						<div class="label label-default" style="font-size: 100%;display: block;margin-bottom: 10px;">#<!--{parseInt(i)+1}--> <!--{response.shop_goods_spu_option[i].shop_goods_spu_name}--></div>
	  					
		  					<!--if{response.shop_goods_spu_option[i].son.length}-->
		  					<!--for{var s in response.shop_goods_spu_option[i].son}-->
		  					<label class="checkbox-inline" style="margin-right: 10px;">
		  						
  								<input type="checkbox" name="shop_goods_spu_id" <!--if{parseInt(response.shop_goods_spu_option[i].son[s].shop_goods_spu_required)}-->checked="checked" disabled="disabled"<!--elseif helper{"goods_spu_id-checkbox-match" (response.shop_goods_spu_option[i].son[s].shop_goods_spu_id, goods_sku_data.shop_goods_spu_id)}-->checked="checked"<!--/if--> style="margin-left: -16px;" value="<!--{response.shop_goods_spu_option[i].son[s].shop_goods_spu_id}-->"  >
							  <!--{response.shop_goods_spu_option[i].son[s].shop_goods_spu_name}-->
							</label>
		  					<!--/for-->
		  					<!--else-->
		  					<div style="color: #999;text-align: center;">无选项</div>
		  					<!--/if-->
	  						
	  					</div>
	  				<!--/for-->
	  				<!--/if-->
		    	</div>
		    </div>
		</div>
		<div class="form-group">
		    <label>库存：</label>
		    <input type="text" class="form-control" placeholder="输入库存" name="shop_goods_sku_stock" value="<!--{goods_sku_data.shop_goods_sku_stock}-->">
		</div>
		
		<!--if{response.get.shop_goods_property == 0}-->
		<div class="form-group">
		    <label>市场价：<span style="color: #999;">可不填</span></label>
		    <div class="input-group">
			    <input type="text" class="form-control" placeholder="输入售卖单价" name="shop_goods_sku_market_price" value="<!--{parseInt(goods_sku_data.shop_goods_sku_market_price)/100}-->">
			  	<span class="input-group-addon">元</span>
			</div>
		</div>
		<div class="form-group">
		    <label>售卖单价：</label>
		    <div class="input-group">
			    <input type="text" class="form-control" placeholder="输入售卖单价" name="shop_goods_sku_price" value="<!--{parseInt(goods_sku_data.shop_goods_sku_price)/100}-->">
			  	<span class="input-group-addon">元</span>
			</div>
		</div>
		<!--elseif{response.get.shop_goods_property == 1}-->
		<div class="form-group">
		    <label>市场价：<span style="color: #999;">可不填</span></label>
		    <div class="input-group">
			    <input type="text" class="form-control" placeholder="输入售卖单价" name="shop_goods_sku_market_price" value="<!--{(goods_sku_data.shop_goods_sku_market_price/application_config_credit.scale).toFixed(application_config_credit.precision)}-->">
			  	<span class="input-group-addon">积分数量</span>
			</div>
		</div>
		<div class="form-group">
		    <label>售卖单价：</label>
		    <div class="input-group">
			    <input type="text" class="form-control" placeholder="输入售卖单价" name="shop_goods_sku_price" value="<!--{(goods_sku_data.shop_goods_sku_price/application_config_credit.scale).toFixed(application_config_credit.precision)}-->">
			  	<span class="input-group-addon">积分数量</span>
			</div>
		</div>
		<!--/if-->
		
		<div class="form-group">
		    <label>描述：</label>
		    <textarea class="form-control" rows="3" placeholder="输入描述" name="shop_goods_sku_info"><!--{goods_sku_data.shop_goods_sku_info}--></textarea>
		</div>
		<br/>
		<button type="button" class="btn btn-primary btn-block" name="goods-sku-edit-submit">提交编辑</button>
	</div>
</script>